<div class="navbar navbar-default navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-collapse">
      <ul class="nav navbar-nav">
        <li class="x-sidebar-toggle">
          <a href="javascript:void(0)"><i class="fa fa-navicon"></i></a>
        </li>
        <li>
          <a href="javascript:void(0)" class="x-nav-link">{{breadcrumb}}</a>
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-user" ng-if="sessionUser.role != 'admin'"></i><i class="fa fa-users"
                ng-if="sessionUser.role == 'admin'"></i> {{sessionUser.email ? '[' + sessionUser.email + ']' : '[未登录]'}}
              <span class="caret"></span>
          </a>
          <ul class="dropdown-menu" ng-if="!sessionUser.email">
            <li><a href="javascript:void(0)" ng-click="login()">登录</a></li>
          </ul>
          <ul class="dropdown-menu" ng-if="sessionUser.email">
            <li><a href="javascript:void(0)" ng-click="editPassword()">修改密码</a></li>
            <li class="divider"></li>
            <li><a href="javascript:void(0)" ng-click="showToken()">接口令牌</a></li>
            <li class="divider"></li>
            <li><a href="javascript:void(0)" ng-click="logout()">退出</a></li>
          </ul>
        </li>
      </ul>
      <form class="navbar-form navbar-right"></form>
    </div>
  </div>
</div>